import request from '@/utils/request'

// 获取短信配置
export function smsConfig() {
  return request({
    url: '/adminapi/setting/smsConfig',
    method: 'get'
  })
}
// 保存短信配置
export function saveSmsConfig(data) {
  return request({
    url: '/adminapi/setting/smsConfig',
    method: 'post',
    data
  })
}
// 获取短信模版配置
export function getSmsTemplate() {
  return request({
    url: '/adminapi/common/getSmsTemplate',
    method: 'get'
  })
}
// 保存短信模版配置
export function smsTemplateSave(data) {
  return request({
    url: '/adminapi/common/smsTemplateSave',
    method: 'post',
    data
  })
}
//-------------============================-----------------
//获取短信配置
export function getsmsConfig(data) {
  return request({
    url: 'adminapi/system/v2/options/info',
    method: 'post',
    data
  })
}
//保存短信配置
export function getsmsConfigsave(data) {
  return request({
    url: 'adminapi/system/v2/options/save',
    method: 'post',
    data
  })
}
//获取短信列表
export function getsmslist(data) {
  return request({
    url: 'adminapi/system/v2/sms/list',
    method: 'post',
    data
  })
}
//保存短信列表{{admin}}
export function getsmssave(data) {
  return request({
    url: 'adminapi/system/v2/sms/save',
    method: 'post',
    data
  })
}